import {http} from '@/utils/http'

enum Api {
    updateAppNotice = '/app-notice/update',
    getAppNoticeList = '/app-notice/page',
    getAppNotice = '/app-notice/get/',
    deleteAppNotice = '/app-notice/delete/',
    addAppNotice = '/app-notice/add',
}

/** APP公告*/
// 公告分页列表
export function getAppNoticeList(data:any) {
    return http.post<any>(Api.getAppNoticeList, data)
}
// 添加公告
export function addAppNotice(data:any) {
    return http.post<any>(Api.addAppNotice,data)
}
// 公告详情
export function getAppNotice(id:string|number) {
    return http.post<any>(Api.getAppNotice+id)
}
// 修改公告
export function updateAppNotice(data:any) {
    return http.post<any>(Api.updateAppNotice,data)
}
// 删除公告
export function deleteAppNotice(id:string|number) {
    return http.post<any>(Api.deleteAppNotice+id)
}














